package flow;

import java.util.Scanner;

public class CompareString {
    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        String a=stdIn.next();

        String b=stdIn.next();
        if(a==b)
            System.out.println("a=b");
        else
            System.out.println("a!=b");

        if (a.equals(b))
            System.out.println("a和b相等");
        else
            System.out.println("a和b不等");
    }


}
